﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200137B RID: 4987
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakePunkLordPointRewardScRsp : IMessage<TakePunkLordPointRewardScRsp>, IMessage, IEquatable<TakePunkLordPointRewardScRsp>, IDeepCloneable<TakePunkLordPointRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003EDF RID: 16095
		// (get) Token: 0x0600DF44 RID: 57156 RVA: 0x00255207 File Offset: 0x00253407
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakePunkLordPointRewardScRsp> Parser
		{
			get
			{
				return TakePunkLordPointRewardScRsp._parser;
			}
		}

		// Token: 0x17003EE0 RID: 16096
		// (get) Token: 0x0600DF45 RID: 57157 RVA: 0x0025520E File Offset: 0x0025340E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakePunkLordPointRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EE1 RID: 16097
		// (get) Token: 0x0600DF46 RID: 57158 RVA: 0x00255220 File Offset: 0x00253420
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakePunkLordPointRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DF47 RID: 57159 RVA: 0x00255227 File Offset: 0x00253427
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePunkLordPointRewardScRsp()
		{
		}

		// Token: 0x0600DF48 RID: 57160 RVA: 0x00255230 File Offset: 0x00253430
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePunkLordPointRewardScRsp(TakePunkLordPointRewardScRsp other) : this()
		{
			this.level_ = other.level_;
			this.retcode_ = other.retcode_;
			this.iCDOHKPKMAH_ = other.iCDOHKPKMAH_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DF49 RID: 57161 RVA: 0x00255294 File Offset: 0x00253494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePunkLordPointRewardScRsp Clone()
		{
			return new TakePunkLordPointRewardScRsp(this);
		}

		// Token: 0x17003EE2 RID: 16098
		// (get) Token: 0x0600DF4A RID: 57162 RVA: 0x0025529C File Offset: 0x0025349C
		// (set) Token: 0x0600DF4B RID: 57163 RVA: 0x002552A4 File Offset: 0x002534A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003EE3 RID: 16099
		// (get) Token: 0x0600DF4C RID: 57164 RVA: 0x002552AD File Offset: 0x002534AD
		// (set) Token: 0x0600DF4D RID: 57165 RVA: 0x002552B5 File Offset: 0x002534B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003EE4 RID: 16100
		// (get) Token: 0x0600DF4E RID: 57166 RVA: 0x002552BE File Offset: 0x002534BE
		// (set) Token: 0x0600DF4F RID: 57167 RVA: 0x002552C6 File Offset: 0x002534C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool ICDOHKPKMAH
		{
			get
			{
				return this.iCDOHKPKMAH_;
			}
			set
			{
				this.iCDOHKPKMAH_ = value;
			}
		}

		// Token: 0x17003EE5 RID: 16101
		// (get) Token: 0x0600DF50 RID: 57168 RVA: 0x002552CF File Offset: 0x002534CF
		// (set) Token: 0x0600DF51 RID: 57169 RVA: 0x002552D7 File Offset: 0x002534D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DF52 RID: 57170 RVA: 0x002552E0 File Offset: 0x002534E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakePunkLordPointRewardScRsp);
		}

		// Token: 0x0600DF53 RID: 57171 RVA: 0x002552F0 File Offset: 0x002534F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakePunkLordPointRewardScRsp other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.Retcode == other.Retcode && this.ICDOHKPKMAH == other.ICDOHKPKMAH && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DF54 RID: 57172 RVA: 0x00255360 File Offset: 0x00253560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ICDOHKPKMAH)
			{
				num ^= this.ICDOHKPKMAH.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DF55 RID: 57173 RVA: 0x002553E7 File Offset: 0x002535E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DF56 RID: 57174 RVA: 0x002553EF File Offset: 0x002535EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DF57 RID: 57175 RVA: 0x002553F8 File Offset: 0x002535F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Reward);
			}
			if (this.ICDOHKPKMAH)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.ICDOHKPKMAH);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DF58 RID: 57176 RVA: 0x0025548C File Offset: 0x0025368C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ICDOHKPKMAH)
			{
				num += 2;
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DF59 RID: 57177 RVA: 0x00255508 File Offset: 0x00253708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakePunkLordPointRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ICDOHKPKMAH)
			{
				this.ICDOHKPKMAH = other.ICDOHKPKMAH;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DF5A RID: 57178 RVA: 0x00255598 File Offset: 0x00253798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DF5B RID: 57179 RVA: 0x002555A4 File Offset: 0x002537A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 58U)
				{
					if (num == 16U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
					if (num == 58U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.ICDOHKPKMAH = input.ReadBool();
						continue;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005874 RID: 22644
		private static readonly MessageParser<TakePunkLordPointRewardScRsp> _parser = new MessageParser<TakePunkLordPointRewardScRsp>(() => new TakePunkLordPointRewardScRsp());

		// Token: 0x04005875 RID: 22645
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005876 RID: 22646
		public const int LevelFieldNumber = 2;

		// Token: 0x04005877 RID: 22647
		private uint level_;

		// Token: 0x04005878 RID: 22648
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04005879 RID: 22649
		private uint retcode_;

		// Token: 0x0400587A RID: 22650
		public const int ICDOHKPKMAHFieldNumber = 8;

		// Token: 0x0400587B RID: 22651
		private bool iCDOHKPKMAH_;

		// Token: 0x0400587C RID: 22652
		public const int RewardFieldNumber = 7;

		// Token: 0x0400587D RID: 22653
		private ItemList reward_;
	}
}
